/***************************************************************************
 *            un_client_test.c
 *
 *  Tue May 29 11:53:08 2007
 *  Copyright  2007  kf701
 *  Email <kf701.ye AT gmail.com>
 ****************************************************************************/

#include "kf701.h"

int main()
{
	debug_verbose = 4;
	char server_path[256] = "/tmp/un_test.listen";
	char buf[] = "only for test";
	//int sock = unix_socket_new();
	int sock = unix_socket_new_listen("/tmp/un_client.listen");
	int ret = unix_socket_send( sock, server_path, buf, sizeof(buf) );
	if( ret < 0 )
		sys_debug("send err\n");
	sys_debug("send ret = %d\n", ret);
	unix_socket_free( sock );
	return 0;
}
